package com.wn26.dao;

import java.sql.SQLException;

import com.wn26.bean.User;

public interface UserDao {

	/**
	 * 根据用户名和密码进行用户查找
	 * @param userName
	 * @param userPwd
	 * @return
	 * @throws SQLException 
	 */
	User findUserByUserNameAndPwd(String userName, String userPwd) throws SQLException;

	/**
	 * 新增用户
	 * @param registerUser
	 * @return
	 * @throws SQLException 
	 */
	int saveUser(User registerUser) throws SQLException;

	User findUserByTel(String user_tel) throws SQLException;

}
